<?php
include('../../inc/global.inc');
include("../islogin.php");
?>
<?php
if($_POST['act_xg']){
mysql_query("update p_list set p_cname='$_POST[p_cname]' where id='".$_POST['iid']."'");
echo "<script>location='".$_POST[url]."';</script>";
}
?>
<HTML>
<HEAD>
<TITLE>Admin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
</HEAD>
<BODY>
<center>
  <table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <tr>
      <td height="25" bgcolor="#EEEEF9" style="padding-left:5px;">修改企业产品分类 &nbsp;&nbsp;<a href="javascript:history.go(-1)">返回</a></td>
    </tr>
  </table>
  <?php
$sql="select * from p_list where id=".$_GET['xg_id'];
$rs=mysql_query($sql);
$row=mysql_fetch_array($rs)
?>
<table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <form method="post" action="" onSubmit="return check()">
      <tr>
        <td height="30" colspan="2" align="center" bgcolor="#8DA8CF">修改企业产品分类</td>
      </tr>
      <tr>
        <td width="39%" height="30" align="center" bgcolor="#FFFFFF">产品名称</td>
        <td width="61%" align="left" bgcolor="#FFFFFF" style="padding-left:2px;"><input name="p_cname" type="text" value="<?=$row[p_cname]?>" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td height="30" align="center" bgcolor="#FFFFFF">会员名称</td>
        <td align="left" bgcolor="#FFFFFF" style="padding-left:2px;">
		<?php $m_rs=mysql_query("select * from member where id='".$row['member_id']."'");
	        $m_row=mysql_fetch_array($m_rs);
	  ?><?=$m_row[m_user]?></td>
      </tr>
      <tr>
        <input type="hidden" name="act_xg" value="ok"><input type="hidden" name="iid" value="<?=$row['id']?>"><input type="hidden" name="url" value="<?=$_SERVER['HTTP_REFERER']?>">
        <td height="30" colspan="2" align="center" bgcolor="#FFFFFF"><input name="submit" type="submit" value="提交"></td>
      </tr>
    </form>
  </table>

</center>
</BODY>
</HTML>
